package com.xnyzc.lhy.order.feign.fallback.statistics;

import com.xnyzc.lhy.common.entity.Rv;
import com.xnyzc.lhy.order.entity.gps.OaDVehicleGpsHistory;
import com.xnyzc.lhy.order.entity.gps.OaSysTrajectory;
import com.xnyzc.lhy.order.feign.statistics.FeignTrajectoryService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * 轨迹服务
 *
 * @author cuixiaojian
 * @date 2020-01-06
 */
@Slf4j
@Service
public class FeignTrajectoryServiceFallback implements FeignTrajectoryService {

    /**
     * 订单轨迹保存
     * @param oaDVehicleGpsHistoryList 轨迹集合
     * @return Rv
     */
    @Override
    public Rv saveOrderTrajectory(List<OaDVehicleGpsHistory> oaDVehicleGpsHistoryList) {

        log.error("------------------------------------------------------------------------------------------------");
        log.error("----------------------------------------订单轨迹保存失败------------------------------------------");
        log.error("------------------------------------------------------------------------------------------------");

        return Rv.wrap(null);

    }

    /**
     * 订单轨迹查询
     * @param orderNo 订单号
     * @return Rv
     */
    @Override
    public Rv getOrderTrajectory(String orderNo) {
        log.error("轨迹查询服务调用失败");
        return Rv.wrap(new ArrayList<>());
    }
}
